Example usage for io.netty.util AttributeKey newInstance

List of usage examples for io.netty.util AttributeKey newInstance

Introduction

In this page you can find the example usage for io.netty.util AttributeKey newInstance.

Prototype

@SuppressWarnings("unchecked")
public static <T> AttributeKey<T> newInstance(String name) 

Source Link

Document

Creates a new AttributeKey for the given name or fail with an IllegalArgumentException if a AttributeKey for the given name exists.

Usage

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);
}