Home
last modified time | relevance | path

Searched refs:attachment (Results 1 – 25 of 26) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/nio/channels/
DFutureLikeCompletionHandler.java26 Object attachment; field in FutureLikeCompletionHandler
28 public void completed(V result, Object attachment) { in completed() argument
35 this.attachment = attachment; in completed()
40 public void failed(Throwable exc, Object attachment) { in failed() argument
47 this.attachment = attachment; in failed()
66 return attachment; in getAttachment()
DAsynchronousFileChannelTest.java253 public String attachment; field in AsynchronousFileChannelTest.RecordingHandler
260 public void completed(Integer result, String attachment) { in completed() argument
262 this.attachment = attachment; in completed()
268 public void failed(Throwable exc, String attachment) { in failed() argument
270 this.attachment = attachment; in failed()
288 String attachment = "ATTACHMENT"; in testRead_CompletionListener() local
292 afc.read(buf, 0, attachment, handler); in testRead_CompletionListener()
301 afc.read(buf, 0, attachment, handler); in testRead_CompletionListener()
304 assertSame(attachment, handler.attachment); in testRead_CompletionListener()
313 attachment = "ATTACHMENT2"; in testRead_CompletionListener()
[all …]
DAsynchronousSocketChannelTest.java326 Object attachment = new Integer(1); in test_completionHandlerReadWrite() local
327 asc.connect(ss.getLocalSocketAddress(), attachment, connectCompletionHandler); in test_completionHandlerReadWrite() local
330 assertEquals(attachment, connectCompletionHandler.getAttachment()); in test_completionHandlerReadWrite()
343 asc.read(receivedData, attachment, readCompletionHandler); in test_completionHandlerReadWrite()
345 assertEquals(attachment, readCompletionHandler.getAttachment()); in test_completionHandlerReadWrite()
354 asc.write(sendData, attachment, writeCompletionHandler); in test_completionHandlerReadWrite()
356 assertEquals(attachment, writeCompletionHandler.getAttachment()); in test_completionHandlerReadWrite()
385 Object attachment = new Integer(1); in test_scatterReadWrite() local
386 asc.connect(ss.getLocalSocketAddress(), attachment, connectCompletionHandler); in test_scatterReadWrite() local
389 assertEquals(attachment, connectCompletionHandler.getAttachment()); in test_scatterReadWrite()
[all …]
DAsynchronousServerSocketChannelTest.java163 Integer attachment = new Integer(123); in test_completionHandlerAccept_attachment() local
164 assc.accept(attachment, acceptCompletionHandler); in test_completionHandlerAccept_attachment()
173 assertEquals(attachment, acceptCompletionHandler.getAttachment()); in test_completionHandlerAccept_attachment()
/libcore/ojluni/src/main/java/sun/nio/ch/
DInvoker.java121 A attachment, in invokeUnchecked() argument
126 handler.completed(value, attachment); in invokeUnchecked()
128 handler.failed(exc, attachment); in invokeUnchecked()
155 A attachment, in invokeDirect() argument
160 Invoker.invokeUnchecked(handler, attachment, result, exc); in invokeDirect()
170 A attachment, in invoke() argument
188 invokeDirect(thisGroupAndInvokeCount, handler, attachment, result, exc); in invoke()
191 invokeIndirectly(channel, handler, attachment, result, exc); in invoke()
197 handler, attachment, result, exc); in invoke()
210 final A attachment, in invokeIndirectly() argument
[all …]
DPendingFuture.java43 private final A attachment; field in PendingFuture
61 A attachment, in PendingFuture() argument
66 this.attachment = attachment; in PendingFuture()
72 A attachment) in PendingFuture() argument
76 this.attachment = attachment; in PendingFuture()
95 A attachment() { in attachment() method in PendingFuture
96 return attachment; in attachment()
DAsynchronousFileChannelImpl.java109 A attachment, in implLock() argument
125 A attachment, in lock() argument
130 implLock(position, size, shared, attachment, handler); in lock()
213 A attachment, in implRead() argument
224 A attachment, in read() argument
229 implRead(dst, position, attachment, handler); in read()
234 A attachment, in implWrite() argument
246 A attachment, in write() argument
251 implWrite(src, position, attachment, handler); in write()
DSimpleAsynchronousFileChannelImpl.java176 final A attachment, in implLock() argument
190 Invoker.invokeIndirectly(handler, attachment, null, exc, executor); in implLock()
225 Invoker.invokeUnchecked(handler, attachment, fli, exc); in implLock()
290 final A attachment, in implRead() argument
305 Invoker.invokeIndirectly(handler, attachment, 0, exc, executor); in implRead()
335 Invoker.invokeUnchecked(handler, attachment, n, exc); in implRead()
346 final A attachment, in implWrite() argument
359 Invoker.invokeIndirectly(handler, attachment, 0, exc, executor); in implWrite()
389 Invoker.invokeUnchecked(handler, attachment, n, exc); in implWrite()
DAsynchronousSocketChannelImpl.java194 A attachment, in implConnect() argument
204 A attachment, in connect() argument
209 implConnect(remote, attachment, handler); in connect()
220 A attachment, in implRead() argument
290 A attachment, in read() argument
297 read(false, dst, null, timeout, unit, attachment, handler); in read()
306 A attachment, in read() argument
318 read(true, null, bufs, timeout, unit, attachment, handler); in read()
329 A attachment, in implWrite() argument
394 A attachment, in write() argument
[all …]
DUnixAsynchronousSocketChannelImpl.java312 A attachment, in implConnect() argument
320 Invoker.invoke(this, handler, attachment, null, e); in implConnect()
360 this.connectAttachment = attachment; in implConnect()
387 Invoker.invoke(this, handler, attachment, null, e); in implConnect()
500 A attachment, in implRead() argument
549 this.readAttachment = attachment; in implRead()
577 Invoker.invokeDirect(myGroupAndInvokeCount, handler, attachment, (V)result, exc); in implRead()
579 Invoker.invokeIndirectly(this, handler, attachment, (V)result, exc); in implRead()
695 A attachment, in implWrite() argument
732 this.writeAttachment = attachment; in implWrite()
[all …]
DDirectBuffer.java35 public Object attachment(); in attachment() method
DAsynchronousServerSocketChannelImpl.java118 implAccept(Object attachment, in implAccept() argument
129 public final <A> void accept(A attachment, in accept() argument
134 implAccept(attachment, (CompletionHandler<AsynchronousSocketChannel,Object>)handler); in accept()
DSelectorImpl.java125 Object attachment) in register() argument
130 k.attach(attachment); in register()
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousSocketChannel.java325 A attachment, in connect() argument
404 A attachment, in read() argument
417 A attachment, in read() argument
420 read(dst, 0L, TimeUnit.MILLISECONDS, attachment, handler); in read()
514 A attachment, in read() argument
561 A attachment, in write() argument
573 A attachment, in write() argument
577 write(src, 0L, TimeUnit.MILLISECONDS, attachment, handler); in write()
665 A attachment, in write() argument
DAsynchronousFileChannel.java460 A attachment, in lock() argument
491 public final <A> void lock(A attachment, in lock() argument
494 lock(0L, Long.MAX_VALUE, false, attachment, handler); in lock()
678 A attachment, in read() argument
744 A attachment, in write() argument
DSelectionKey.java366 private volatile Object attachment = null; field in SelectionKey
397 public final Object attachment() { in attachment() method in SelectionKey
398 return attachment; in attachment()
DCompletionHandler.java55 void completed(V result, A attachment); in completed() argument
65 void failed(Throwable exc, A attachment); in failed() argument
DAsynchronousByteChannel.java109 A attachment, in read() argument
188 A attachment, in write() argument
DAsynchronousServerSocketChannel.java285 public abstract <A> void accept(A attachment, in accept() argument
/libcore/ojluni/annotations/mmodule/sun/nio/ch/
DDirectBuffer.annotated.java36 public java.lang.Object attachment(); in attachment() method
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/
DDirectBuffer.java36 public java.lang.Object attachment(); in attachment() method
DSelectorImpl.java79 java.lang.Object attachment) { in register() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectionKeyTest.java117 assertNull(mockSelectionKey.attachment()); in test_attachment()
120 assertSame(o, mockSelectionKey.attachment()); in test_attachment()
/libcore/ojluni/annotations/mmodule/java/nio/
DDirectByteBuffer.annotated.java38 public final java.lang.Object attachment() { throw new RuntimeException("Stub!"); } in attachment() method in DirectByteBuffer
/libcore/ojluni/annotations/hiddenapi/java/nio/
DDirectByteBuffer.java78 public final java.lang.Object attachment() { in attachment() method in DirectByteBuffer

12