Lines Matching defs:attachment
87 * <i>attachment</i> of a single arbitrary object to a key. An object can be
89 * the {@link #attachment() attachment} method.
366 private volatile Object attachment = null;
370 SelectionKey.class, Object.class, "attachment"
376 * <p> An attached object may later be retrieved via the {@link #attachment()
377 * attachment} method. Only one object may be attached at a time; invoking
378 * this method causes any previous attachment to be discarded. The current
379 * attachment may be discarded by attaching <tt>null</tt>. </p>
392 * Retrieves the current attachment. </p>
395 * or <tt>null</tt> if there is no attachment
397 public final Object attachment() {
398 return attachment;