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 IARChunkablepublic void nextRound()
nextRound in interface IARChunkablepublic boolean isFirstRound()
isFirstRound in interface IARChunkablepublic int getRoundNumber()
getRoundNumber in interface IARChunkablepublic void setRoundNumber(int roundNumber)
setRoundNumber in interface IARChunkableroundNumber - the round to setpublic void setServerCharSetName(String serverCharSetName)
serverCharSetName - the serverCharSetName to setpublic void init(Object input)
init in interface IARChunkablepublic void end()
end in interface IARChunkablepublic boolean shouldRetry(int chunkingRound)
chunkingRound - ? Copyright 2013 BMC Software, Inc.