List of usage examples for java.util.concurrent ScheduledFuture toString
public String toString()
From source file:com.bt.aloha.testing.mockphones.HangUpDialogBeanBase.java
@Override protected void processBye(Request request, ServerTransaction serverTransaction, String dialogId) { super.processBye(request, serverTransaction, dialogId); log.debug(String.format("Descheduling hang up process waiting for dialogId %s", dialogId)); ScheduledFuture<?> future = timers.remove(dialogId); if (null != future) { log.debug(String.format("Descheduling for hangup the future [%s] for dialogId %s", future.toString(), dialogId));//from ww w .ja v a 2 s.com future.cancel(true); } }
From source file:org.openhab.binding.zoneminder.handler.ZoneMinderServerBridgeHandler.java
/** * Method to stop the datarefresh task.// ww w . j ava2 s .c o m */ protected void stopTask(ScheduledFuture<?> task) { try { if (task != null && !task.isCancelled()) { logger.debug("{}: Stopping ZoneMinder Bridge Monitor Task. Task='{}'", getLogIdentifier(), task.toString()); task.cancel(true); } } catch (Exception ex) { } }