Example code for adding a task to a session's laundry list:
Message message = ...; Object sessionResource = message.getResource(Object.class, "Session"); final LaundryReclaim reclaim = LaundryListProviderFactory.get() .getLaundryList(sessionResource) .add(new Laundry() { {@code @Override}public void clean() { task.cancel(true); } });@author Mike Brock @author Jonathan Fuerth
|
|
|
|
|
|