org.planx.xmlstore.references
Class ReferenceProxy

java.lang.Object
  extended by org.planx.xmlstore.references.ReferenceProxy
All Implemented Interfaces:
Reference

public class ReferenceProxy
extends Object
implements Reference

A proxy Reference with an associated Reference which can be unresolved. If any method is invoked on a ReferenceProxy, and the associated Reference is unresolved, the thread will block until the reference is resolved.

Author:
Kasper Bøgebjerg, Henning Niss, Thomas Ambus

Field Summary
static byte CLASS_ID
           
 
Constructor Summary
ReferenceProxy(Future<Reference> future)
           
 
Method Summary
 Reference get()
           
static Discriminator<ReferenceProxy> getDiscriminator()
           
static Streamer<ReferenceProxy> getStreamer()
           
static Reference resolve(Reference vref)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_ID

public static final byte CLASS_ID
See Also:
Constant Field Values
Constructor Detail

ReferenceProxy

public ReferenceProxy(Future<Reference> future)
Method Detail

get

public Reference get()

resolve

public static Reference resolve(Reference vref)

getStreamer

public static Streamer<ReferenceProxy> getStreamer()

getDiscriminator

public static Discriminator<ReferenceProxy> getDiscriminator()


Copyright © 2010. All Rights Reserved.