void handleData(Buffer buffer) { if (dataHandler != null) { checkContext(); dataHandler.handle(buffer); } }
private void callDoneHandler(Handler<String> doneHandler, String deploymentID) { if (doneHandler != null) { doneHandler.handle(deploymentID); } }
void handleChunk(Buffer data) { if (dataHandler != null) { dataHandler.handle(data); } }
void handleEnd(HttpChunkTrailer trailer) { this.trailer = trailer; if (endHandler != null) { endHandler.handle(null); } }
private void checkDrained() { if (drainHandler != null && writesOutstanding <= lwm) { Handler<Void> handler = drainHandler; drainHandler = null; handler.handle(null); } }
void handleEnd() { if (endHandler != null) { endHandler.handle(null); } }
void handleException(Exception e) { if (exceptionHandler != null) { exceptionHandler.handle(e); } } }
void handleException(Exception e) { if (exceptionHandler != null) { exceptionHandler.handle(e); } }
private void onFailure(Throwable error) { failed = true; Handler<Throwable> handler = plainExceptionHandler; if (handler != null) { handler.handle(error); } }
void handleException(Exception e) { if (exceptionHandler != null) { exceptionHandler.handle(e); } }
public void handle(WebSocketMatcher.Match match) { if (wsHandler != null) { wsHandler.handle(match.ws); } } });
void handleEnd() { if (endHandler != null) { checkContext(); endHandler.handle(null); } } };
void writable() { if (drainHandler != null) { Handler<Void> dh = drainHandler; drainHandler = null; dh.handle(null); } }
private void runOnReadyCallbacks(AsyncResult<Void> result) { initResult = result; onReadyCallbacks.forEach(callback -> callback.handle(result)); onReadyCallbacks.clear(); }
public void handle(final WebSocketMatcher.Match match) { SockJSSocket sock = new RawWSSockJSSocket(vertx, match.ws); sockHandler.handle(sock); } });
public void run() { DefaultNetSocket sock = new DefaultNetSocket(vertx, ch, handler.context); socketMap.put(ch, sock); handler.handler.handle(sock); } });
void handleException(Exception e) { if (exceptionHandler != null) { checkContext(); exceptionHandler.handle(e); } else { log.error("Unhandled exception", e); } }
public synchronized void close() { if (endHandler != null) { endHandler.handle(null); } closed = true; if (listener != null && handleCalled) { listener.sessionClosed(); } }
@Override public void handle(Void aVoid) { if (next >= requestProcessors.size()) { done.handle(null); } else { callVertxRequestProcessor(next, vertxRequest, jerseyRequest, done); } } });