Class ProtonEngineConfiguration
- java.lang.Object
-
- org.apache.qpid.protonj2.engine.impl.ProtonEngineConfiguration
-
- All Implemented Interfaces:
EngineConfiguration
public class ProtonEngineConfiguration extends Object implements EngineConfiguration
Proton engine configuration API
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtonBufferAllocator
getBufferAllocator()
boolean
isTraceFrames()
ProtonEngineConfiguration
setBufferAllocator(ProtonBufferAllocator allocator)
Sets the ProtonBufferAllocator used by this Engine.EngineConfiguration
setTraceFrames(boolean traceFrames)
Enables AMQP frame tracing from engine to the system output.
-
-
-
Method Detail
-
getBufferAllocator
public ProtonBufferAllocator getBufferAllocator()
- Specified by:
getBufferAllocator
in interfaceEngineConfiguration
- Returns:
- the currently assigned
ProtonBufferAllocator
.
-
setBufferAllocator
public ProtonEngineConfiguration setBufferAllocator(ProtonBufferAllocator allocator)
Description copied from interface:EngineConfiguration
Sets the ProtonBufferAllocator used by this Engine.When copying data, encoding types or otherwise needing to allocate memory storage the Engine will use the assigned
ProtonBufferAllocator
. If no allocator is assigned the Engine will use the default allocator.- Specified by:
setBufferAllocator
in interfaceEngineConfiguration
- Parameters:
allocator
- The Allocator instance to use from thisEngine
.- Returns:
- this
EngineConfiguration
for chaining.
-
setTraceFrames
public EngineConfiguration setTraceFrames(boolean traceFrames)
Description copied from interface:EngineConfiguration
Enables AMQP frame tracing from engine to the system output. Depending on the underlying engine composition frame tracing may not be possible in which case this method will have no effect and the access methodEngineConfiguration.isTraceFrames()
will return false.- Specified by:
setTraceFrames
in interfaceEngineConfiguration
- Parameters:
traceFrames
- true to enable engine frame tracing, false to disable it.- Returns:
- this
EngineConfiguration
for chaining.
-
isTraceFrames
public boolean isTraceFrames()
- Specified by:
isTraceFrames
in interfaceEngineConfiguration
- Returns:
- true if the engine will emit frames to system output.
-
-