Package org.apache.qpid.protonj2.engine
Interface EngineConfiguration
-
- All Known Implementing Classes:
ProtonEngineConfiguration
public interface EngineConfiguration
Configuration options for the Engine
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProtonBufferAllocator
getBufferAllocator()
boolean
isTraceFrames()
EngineConfiguration
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
-
setBufferAllocator
EngineConfiguration setBufferAllocator(ProtonBufferAllocator allocator)
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.- Parameters:
allocator
- The Allocator instance to use from thisEngine
.- Returns:
- this
EngineConfiguration
for chaining.
-
getBufferAllocator
ProtonBufferAllocator getBufferAllocator()
- Returns:
- the currently assigned
ProtonBufferAllocator
.
-
setTraceFrames
EngineConfiguration setTraceFrames(boolean traceFrames)
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 methodisTraceFrames()
will return false.- Parameters:
traceFrames
- true to enable engine frame tracing, false to disable it.- Returns:
- this
EngineConfiguration
for chaining.
-
isTraceFrames
boolean isTraceFrames()
- Returns:
- true if the engine will emit frames to system output.
-
-