public class DuplicateRemoverTmcHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
stopped |
protected TmcClient |
tmcClient |
| Constructor and Description |
|---|
DuplicateRemoverTmcHandler(TmcClient tmcClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
confirm(Long outGoingId) |
protected void |
confirm(Map<String,Object> message) |
protected void |
fail(Long outGoingId,
String errorMsg) |
void |
handleConfirm(Long outGoingId) |
void |
handleConfirm(Message message) |
void |
handleMessage(Message message,
boolean ignore) |
void |
onAckMessage(EndpointBaseContext context) |
void |
onMessage(EndpointContext context) |
protected Message |
parse(Map<String,Object> raw) |
void |
retryMessage(Message message) |
protected TmcClient tmcClient
protected volatile boolean stopped
public DuplicateRemoverTmcHandler(TmcClient tmcClient)
public void onMessage(EndpointContext context) throws Exception
onMessage in interface MessageHandlerExceptionpublic void close()
public final void onAckMessage(EndpointBaseContext context)
onAckMessage in interface MessageHandlerpublic void handleConfirm(Message message)
public void handleConfirm(Long outGoingId)
public void retryMessage(Message message) throws RejectedExecutionException
RejectedExecutionExceptionpublic void handleMessage(Message message, boolean ignore)
protected void confirm(Map<String,Object> message) throws LinkException
LinkExceptionprotected void confirm(Long outGoingId) throws LinkException
LinkExceptionprotected void fail(Long outGoingId, String errorMsg) throws LinkException
LinkExceptionprotected Message parse(Map<String,Object> raw) throws IOException
IOExceptionCopyright © 2021. All rights reserved.