public void processMessage(TransportMapping<?> sourceTransport, Address incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) { MessageTask task = new MessageTask(sourceTransport, incomingAddress, wholeMessage, tmStateReference); threadPool.execute(task); }
public void processMessage(TransportMapping sourceTransport, Address incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) { MessageTask task = new MessageTask(sourceTransport, incomingAddress, wholeMessage, tmStateReference); threadPool.execute(task); }
public void processMessage(TransportMapping sourceTransport, Address incomingAddress, BERInputStream wholeMessage) { // OK, here wo do all that what this class is all about! MessageTask task = new MessageTask(sourceTransport, incomingAddress, wholeMessage); threadPool.execute(task); }
public Object notify(OctetString context, OID notificationID, TimeTicks sysUpTime, VariableBinding[] vbs) { if (notificationOriginator != null) { NotificationTask notifyTask = new NotificationTask(notificationOriginator, context, notificationID, sysUpTime, vbs); if (threadPool != null) { threadPool.execute(notifyTask); return notifyTask; } else { notifyTask.run(); return notifyTask.getResponses(); } } else { logger.warn("Could not sent notification '"+notificationID+"'="+ Arrays.asList(vbs)+" because NotificationOriginator not set"); } return null; }
public Object notify(OctetString context, OID notificationID, TimeTicks sysUpTime, VariableBinding[] vbs) { if (notificationOriginator != null) { NotificationTask notifyTask = new NotificationTask(notificationOriginator, context, notificationID, sysUpTime, vbs); if (threadPool != null) { threadPool.execute(notifyTask); return notifyTask; } else { notifyTask.run(); return notifyTask.getResponses(); } } else { logger.warn("Could not sent notification '" + notificationID + "'=" + Arrays.asList(vbs) + " because NotificationOriginator not set"); } return null; }