Lines Matching defs:handler

186         // complete write if write operation has a completion handler.
202 * Invoked by event handler thread when file descriptor is polled
269 // invoke handler and set result
270 CompletionHandler<Void,Object> handler = connectHandler;
273 if (handler == null) {
277 Invoker.invokeUnchecked(handler, att, null, e);
279 Invoker.invokeIndirectly(this, handler, att, null, e);
288 CompletionHandler<Void,? super A> handler)
292 if (handler == null) {
295 Invoker.invoke(this, handler, attachment, null, e);
330 if (handler == null) {
334 this.connectHandler = (CompletionHandler<Void,Object>)handler;
359 if (handler == null) {
362 Invoker.invoke(this, handler, attachment, null, e);
375 CompletionHandler<Number,Object> handler = readHandler;
424 // invoke handler or set result
425 if (handler == null) {
429 Invoker.invokeUnchecked(handler, att, result, exc);
431 Invoker.invokeIndirectly(this, handler, att, result, exc);
438 CompletionHandler<Number,Object> handler = null;
446 handler = readHandler;
454 // invoke handler or set result
456 if (handler == null) {
460 Invoker.invokeIndirectly(ch, handler, att, null, exc);
476 CompletionHandler<V,? super A> handler)
479 // or, we are using a fixed thread pool and the completion handler may
486 if (handler == null) {
517 if (handler == null) {
523 this.readHandler = (CompletionHandler<Number,Object>)handler;
550 if (handler != null) {
552 Invoker.invokeDirect(myGroupAndInvokeCount, handler, attachment, (V)result, exc);
554 Invoker.invokeIndirectly(this, handler, attachment, (V)result, exc);
570 CompletionHandler<Number,Object> handler = this.writeHandler;
619 // invoke handler or set result
620 if (handler == null) {
624 Invoker.invokeUnchecked(handler, att, result, exc);
626 Invoker.invokeIndirectly(this, handler, att, result, exc);
633 CompletionHandler<Number,Object> handler = null;
641 handler = writeHandler;
649 // invoke handler or set result
651 if (handler != null) {
653 handler, att, null, exc);
671 CompletionHandler<V,? super A> handler)
676 boolean attemptWrite = (handler == null) || invokeDirect ||
700 if (handler == null) {
706 this.writeHandler = (CompletionHandler<Number,Object>)handler;
733 if (handler != null) {
735 Invoker.invokeDirect(myGroupAndInvokeCount, handler, attachment, (V)result, exc);
737 Invoker.invokeIndirectly(this, handler, attachment, (V)result, exc);