Package org.apache.qpid.protonj2.client
Class TerminusOptions<E extends TerminusOptions<E>>
- java.lang.Object
-
- org.apache.qpid.protonj2.client.TerminusOptions<E>
-
- Type Parameters:
E
- the subclass that implements this terminus options type.
- Direct Known Subclasses:
SourceOptions
,TargetOptions
public abstract class TerminusOptions<E extends TerminusOptions<E>> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TerminusOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
capabilities()
E
capabilities(java.lang.String... capabilities)
protected void
copyInto(TerminusOptions<E> other)
DurabilityMode
durabilityMode()
E
durabilityMode(DurabilityMode durabilityMode)
ExpiryPolicy
expiryPolicy()
E
expiryPolicy(ExpiryPolicy expiryPolicy)
long
timeout()
E
timeout(long timeout)
-
-
-
Method Detail
-
durabilityMode
public DurabilityMode durabilityMode()
- Returns:
- the durabilityMode
-
durabilityMode
public E durabilityMode(DurabilityMode durabilityMode)
- Parameters:
durabilityMode
- the durabilityMode to set- Returns:
- this options instance.
-
timeout
public long timeout()
- Returns:
- the timeout
-
timeout
public E timeout(long timeout)
- Parameters:
timeout
- the timeout to set- Returns:
- this options instance.
-
expiryPolicy
public ExpiryPolicy expiryPolicy()
- Returns:
- the expiryPolicy
-
expiryPolicy
public E expiryPolicy(ExpiryPolicy expiryPolicy)
- Parameters:
expiryPolicy
- the expiryPolicy to set- Returns:
- this options instance.
-
capabilities
public java.lang.String[] capabilities()
- Returns:
- the capabilities
-
capabilities
public E capabilities(java.lang.String... capabilities)
- Parameters:
capabilities
- the capabilities to set- Returns:
- this options instance.
-
copyInto
protected void copyInto(TerminusOptions<E> other)
-
-