ByteBuffer buffer = ByteBuffer.allocate(1024);
decoder.read(buffer);
log.debug("content {} received {},{}", new Object[]{buffer, decoder, ioctrl});
// TODO : currently it always triggers poll request on /, should this be configurable?
ReplicationRequest replicationRequest = new ReplicationRequest(System.currentTimeMillis(), ReplicationActionType.POLL, "/");
handler.handle(replicationRequest);
log.info("replication request to agent {} sent ({} {})", new Object[]{
handler,
replicationRequest.getAction(),
replicationRequest.getPaths()});
super.onContentReceived(decoder, ioctrl);
}