JBoss Remoting 3.1.0.Beta1

org.jboss.remoting3
Interface Attachments


public interface Attachments


Nested Class Summary
static class Attachments.Key<T>
           
 
Method Summary
<T> T
attach(Attachments.Key<T> key, T value)
          Attach a value to this object.
<T> T
attachIfAbsent(Attachments.Key<T> key, T value)
           
<T> T
getAttachment(Attachments.Key<T> key)
           
<T> T
removeAttachment(Attachments.Key<T> key)
           
<T> boolean
removeAttachment(Attachments.Key<T> key, T value)
           
<T> boolean
replaceAttachment(Attachments.Key<T> key, T expect, T replacement)
           
 

Method Detail

attach

<T> T attach(Attachments.Key<T> key,
             T value)
Attach a value to this object.

Type Parameters:
T - the type of the attachment
Parameters:
key - the attachment key
value - the attachment value

attachIfAbsent

<T> T attachIfAbsent(Attachments.Key<T> key,
                     T value)

replaceAttachment

<T> boolean replaceAttachment(Attachments.Key<T> key,
                              T expect,
                              T replacement)

removeAttachment

<T> T removeAttachment(Attachments.Key<T> key)

removeAttachment

<T> boolean removeAttachment(Attachments.Key<T> key,
                             T value)

getAttachment

<T> T getAttachment(Attachments.Key<T> key)

JBoss Remoting 3.1.0.Beta1

Copyright © 2010 JBoss, a division of Red Hat, Inc.