List of usage examples for io.netty.util AttributeKey newInstance
@SuppressWarnings("unchecked") public static <T> AttributeKey<T> newInstance(String name)
From source file:com.tc.websocket.server.DominoWebSocketServer.java
License:Apache License
@Override public void onError(ContextWrapper conn, Exception ex) { LOG.log(Level.FINE, "***DominoWebSocketServer.onError***"); if (conn != null) { Attribute<Object> att = conn.attr(AttributeKey.newInstance("resourceDescriptor")); LOG.log(Level.SEVERE, null, att.get().toString()); }//from w w w . j a v a 2 s .c o m LOG.log(Level.SEVERE, null, ex); this.notifyEventObservers(Const.ON_ERROR, ex); }