JBoss Remoting 3 3.2.0.CR6

org.jboss.remoting3
Class Attachments

java.lang.Object
  extended by org.jboss.remoting3.Attachments

public final class Attachments
extends Object

A set of attachments for an entity.


Nested Class Summary
static class Attachments.Key<T>
          An attachment key.
 
Constructor Summary
Attachments()
           
 
Method Summary
<T> T
attach(Attachments.Key<T> key, T value)
          
<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)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attachments

public Attachments()
Method Detail

attach

public <T> T attach(Attachments.Key<T> key,
                    T value)


attachIfAbsent

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


replaceAttachment

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


removeAttachment

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


removeAttachment

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


getAttachment

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


JBoss Remoting 3 3.2.0.CR6

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.