| example.TimerResource
TimerResource | public class TimerResource extends AbstractResourceAdapter (Code) | | Implements a resource which uses uses Work management for
separate threading.
|
Method Summary | |
public void | addCount() Adds to the count. | public void | setInitialDelay(Period initialDelay) Sets the initial delay using the Resin-specific period notation:
10s, 10m, etc. | public void | setPeriod(Period period) Sets the period using the Resin-specific period notation:
10s, 10m, etc. | public void | start(BootstrapContext ctx) The start method is called when the resource adapter starts, i.e. | public void | stop() Called when the resource adapter is stopped, i.e. | public String | toString() Returns a printable version of the resource. |
addCount | public void addCount()(Code) | | Adds to the count.
|
setInitialDelay | public void setInitialDelay(Period initialDelay)(Code) | | Sets the initial delay using the Resin-specific period notation:
10s, 10m, etc.
|
setPeriod | public void setPeriod(Period period)(Code) | | Sets the period using the Resin-specific period notation:
10s, 10m, etc.
|
start | public void start(BootstrapContext ctx) throws ResourceAdapterInternalException(Code) | | The start method is called when the resource adapter starts, i.e.
when the web-app or host initializes.
|
stop | public void stop() throws ResourceAdapterInternalException(Code) | | Called when the resource adapter is stopped, i.e. when the
web-app or host closes down.
|
toString | public String toString()(Code) | | Returns a printable version of the resource.
|
|
|