org.infinispan.server.websocket
Interface OpHandler

All Known Implementing Classes:
GetHandler, NotifyHandler, PutHandler, RemoveHandler

public interface OpHandler

Websocket cache operation handler.

Author:
tom.fennelly@gmail.com

Field Summary
static String CACHE_NAME
           
static String KEY
           
static String MIME
           
static String OP_CODE
           
static String VALUE
           
 
Method Summary
 void handleOp(org.json.JSONObject opPayload, Cache<Object,Object> cache, org.jboss.netty.channel.ChannelHandlerContext ctx)
          Handle a websocket channel operation.
 

Field Detail

OP_CODE

static final String OP_CODE
See Also:
Constant Field Values

CACHE_NAME

static final String CACHE_NAME
See Also:
Constant Field Values

KEY

static final String KEY
See Also:
Constant Field Values

VALUE

static final String VALUE
See Also:
Constant Field Values

MIME

static final String MIME
See Also:
Constant Field Values
Method Detail

handleOp

void handleOp(org.json.JSONObject opPayload,
              Cache<Object,Object> cache,
              org.jboss.netty.channel.ChannelHandlerContext ctx)
              throws org.json.JSONException
Handle a websocket channel operation.

Parameters:
opPayload - Operation payload.
cache - The target cache.
ctx - The Netty websocket channel handler.
Throws:
org.json.JSONException

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.