MCPcopy Create free account
hub / github.com/chenshuo/muduo / Handler

Method Handler

examples/filetransfer/loadtest/Handler.java:22–28  ·  view source on GitHub ↗
(int maxLength, CountDownLatch latch)

Source from the content-addressed store, hash-verified

20 private MessageDigest digest;
21
22 public Handler(int maxLength, CountDownLatch latch) throws Exception {
23 this.id = created++;
24 this.maxLength = maxLength;
25 this.latch = latch;
26 this.digest = MessageDigest.getInstance("MD5");
27 System.out.println("Handler tid=" + Thread.currentThread().getId() + " " + id);
28 }
29
30 @Override
31 public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected