updateMsg = new UpdateOperation.UpdateMessage( (UpdateMessage)this);
updateMsg = new UpdateOperation.UpdateMessage( this);
registerDSFID(IP_ADDRESS, () -> new IpAddress()); registerDSFID(DISTRIBUTED_MEMBER, () -> new InternalDistributedMember()); registerDSFID(UPDATE_MESSAGE, () -> new UpdateOperation.UpdateMessage()); registerDSFID(REPLY_MESSAGE, () -> new ReplyMessage()); registerDSFID(PR_DESTROY, () -> new DestroyMessage());
@Override protected CacheOperationMessage createMessage() { EntryEventImpl ev = getEvent(); if (ev.isBridgeEvent()) { UpdateWithContextMessage mssgwithContxt = new UpdateWithContextMessage(); // getContext is not in EntryEvent interface because it exposes a private // class mssgwithContxt.clientID = ev.getContext(); return mssgwithContxt; } else { return new UpdateMessage(ev.getTXState()); } }
@Override protected CacheOperationMessage createMessage() { EntryEventImpl ev = getEvent(); if (ev.isBridgeEvent()) { UpdateWithContextMessage mssgwithContxt = new UpdateWithContextMessage(); // getContext is not in EntryEvent interface because it exposes a private // class mssgwithContxt.clientID = ev.getContext(); return mssgwithContxt; } else { return new UpdateMessage(); } }
@Override protected void initProcessor(CacheOperationReplyProcessor p, CacheOperationMessage msg) { if (processor != null) { if(msg instanceof UpdateWithContextMessage){ processor.msg = new UpdateWithContextMessage((UpdateWithContextMessage)msg); } else{ processor.msg = new UpdateMessage((UpdateMessage)msg); } } }
@Override protected void initProcessor(CacheOperationReplyProcessor p, CacheOperationMessage msg) { if (processor != null) { if(msg instanceof UpdateWithContextMessage){ processor.msg = new UpdateWithContextMessage((UpdateWithContextMessage)msg); } else{ processor.msg = new UpdateMessage((UpdateMessage)msg); } } }