use of com.tvd12.quick.rpc.server.annotation.Rpc in project calabash by youngmonkeys.
the class MapRequestController method mapClear.
@Rpc(Commands.MAP_CLEAR)
public boolean mapClear(MapClearRequest request) {
BytesMap map = getBytesMap(request.getMapId());
map.clear();
return Boolean.TRUE;
}
use of com.tvd12.quick.rpc.server.annotation.Rpc in project calabash by youngmonkeys.
the class MessageChannelRequestController method messageChannelPublish.
@Rpc(Commands.MESSGE_CHANNEL_SUBSCRIBE)
public boolean messageChannelPublish(MessageChannelSubscribeRequest request, RpcSession session) {
MessageChannel messageChannel = getMessageChannel(request.getChannelId());
messageChannel.addSubscriber(session);
return Boolean.TRUE;
}
Aggregations