public class TickInternalParameters
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
bufferRecyclingMaxLifeSpan |
int |
bufferRecyclingMaxSize |
static int |
DEFAULT_BUFFER_RECYCLING_MAX_LIFE_SPAN |
static int |
DEFAULT_BUFFER_RECYCLING_MAX_SIZE |
Constructor and Description |
---|
TickInternalParameters() |
TickInternalParameters(TickInternalParameters o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this TickInternalParameters.
|
static TickInternalParameters |
fromString(java.lang.String s)
String representation of this TickInternalParameters.
|
int |
getBufferRecyclingMaxLifeSpan()
To avoid a tick message pool full of messages with a large payload (==bufferRecyclingMaxSize), the payload is released every time the message has been used bufferRecyclingMaxLifeSpan times.
|
int |
getBufferRecyclingMaxSize()
When a tick message is released, it is put back into a memory pool for reuse.
|
TickInternalParameters |
makeCopy()
Creates and returns a deep copy of this TickInternalParameters.
|
static TickInternalParameters |
readFrom(java.io.InputStream is)
Read this TickInternalParameters from an XML fragment.
|
void |
setBufferRecyclingMaxLifeSpan(int bufferRecyclingMaxLifeSpan)
To avoid a tick message pool full of messages with a large payload (==bufferRecyclingMaxSize), the payload is released every time the message has been used bufferRecyclingMaxLifeSpan times.
|
void |
setBufferRecyclingMaxSize(int bufferRecyclingMaxSize)
When a tick message is released, it is put back into a memory pool for reuse.
|
java.lang.String |
toString()
String representation of this TickInternalParameters.
|
TickInternalParameters |
withBufferRecyclingMaxLifeSpan(int bufferRecyclingMaxLifeSpan) |
TickInternalParameters |
withBufferRecyclingMaxLifeSpan(java.lang.Integer bufferRecyclingMaxLifeSpan) |
TickInternalParameters |
withBufferRecyclingMaxSize(int bufferRecyclingMaxSize) |
TickInternalParameters |
withBufferRecyclingMaxSize(java.lang.Integer bufferRecyclingMaxSize) |
void |
writeTo(java.io.OutputStream os)
Write this TickInternalParameters as an XML fragment
|
public int bufferRecyclingMaxSize
public static final int DEFAULT_BUFFER_RECYCLING_MAX_SIZE
public int bufferRecyclingMaxLifeSpan
public static final int DEFAULT_BUFFER_RECYCLING_MAX_LIFE_SPAN
public TickInternalParameters()
public TickInternalParameters(TickInternalParameters o)
public void setBufferRecyclingMaxSize(int bufferRecyclingMaxSize)
public int getBufferRecyclingMaxSize()
public TickInternalParameters withBufferRecyclingMaxSize(int bufferRecyclingMaxSize)
public TickInternalParameters withBufferRecyclingMaxSize(java.lang.Integer bufferRecyclingMaxSize)
public void setBufferRecyclingMaxLifeSpan(int bufferRecyclingMaxLifeSpan)
public int getBufferRecyclingMaxLifeSpan()
public TickInternalParameters withBufferRecyclingMaxLifeSpan(int bufferRecyclingMaxLifeSpan)
public TickInternalParameters withBufferRecyclingMaxLifeSpan(java.lang.Integer bufferRecyclingMaxLifeSpan)
public TickInternalParameters makeCopy()
public static TickInternalParameters readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static TickInternalParameters fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.