public abstract class ARChunkProcessorBase extends Object implements IARChunkable
ApiThreadLocalStorageBlock
.setInternalChunkingObj(), which is available among all chunks and thread safe.Modifier and Type | Field and Description |
---|---|
static String |
CHUNK_PROCESSOR_KEY |
Constructor and Description |
---|
ARChunkProcessorBase() |
Modifier and Type | Method and Description |
---|---|
void |
end()
close any open resource
|
int |
getRoundNumber() |
boolean |
hasNextRound() |
void |
init(Object input)
initialize the chunk processor with the given argument
|
boolean |
isFirstRound()
Is current round is the first round of chunking
|
void |
nextRound()
Bump up the round count for next round of chunking,
|
void |
setRoundNumber(int roundNumber) |
void |
setServerCharSetName(String serverCharSetName) |
boolean |
shouldRetry(int chunkingRound)
retry can happen on different chunks even during the same API call.
|
public static String CHUNK_PROCESSOR_KEY
public boolean hasNextRound()
hasNextRound
in interface IARChunkable
public void nextRound()
nextRound
in interface IARChunkable
public boolean isFirstRound()
isFirstRound
in interface IARChunkable
public int getRoundNumber()
getRoundNumber
in interface IARChunkable
public void setRoundNumber(int roundNumber)
setRoundNumber
in interface IARChunkable
roundNumber
- the round to setpublic void setServerCharSetName(String serverCharSetName)
serverCharSetName
- the serverCharSetName to setpublic void init(Object input)
init
in interface IARChunkable
public void end()
end
in interface IARChunkable
public boolean shouldRetry(int chunkingRound)
chunkingRound
- ? Copyright 2013 BMC Software, Inc.