Home
last modified time | relevance | path

Searched refs:T (Results 1 – 16 of 16) sorted by relevance

/unit/src/java/javax/websocket/
H A DEncoder.java30 interface Text<T> extends Encoder {
32 String encode(T object) throws EncodeException; in encode()
35 interface TextStream<T> extends Encoder {
37 void encode(T object, Writer writer) in encode()
41 interface Binary<T> extends Encoder {
43 ByteBuffer encode(T object) throws EncodeException; in encode()
46 interface BinaryStream<T> extends Encoder {
48 void encode(T object, OutputStream os) in encode()
H A DDecoder.java30 interface Binary<T> extends Decoder {
32 T decode(ByteBuffer bytes) throws DecodeException; in decode()
37 interface BinaryStream<T> extends Decoder {
39 T decode(InputStream is) throws DecodeException, IOException; in decode()
42 interface Text<T> extends Decoder {
44 T decode(String s) throws DecodeException; in decode()
49 interface TextStream<T> extends Decoder {
51 T decode(Reader reader) throws DecodeException, IOException; in decode()
H A DMessageHandler.java21 interface Partial<T> extends MessageHandler {
30 void onMessage(T messagePart, boolean last); in onMessage()
33 interface Whole<T> extends MessageHandler {
40 void onMessage(T message); in onMessage()
H A DSession.java173 <T> void addMessageHandler(Class<T> clazz, MessageHandler.Partial<T> handler) in addMessageHandler()
191 <T> void addMessageHandler(Class<T> clazz, MessageHandler.Whole<T> handler) in addMessageHandler()
/unit/src/java/nginx/unit/websocket/pojo/
H A DPojoMessageHandlerWholeBase.java34 public abstract class PojoMessageHandlerWholeBase<T>
35 extends PojoMessageHandlerBase<T> implements MessageHandler.Whole<T> {
46 public final void onMessage(T message) { in onMessage()
87 protected Object convert(T message) { in convert()
92 protected abstract Object decode(T message) throws DecodeException; in decode()
H A DPojoMessageHandlerPartialBase.java35 public abstract class PojoMessageHandlerPartialBase<T>
36 extends PojoMessageHandlerBase<T> implements MessageHandler.Partial<T> {
51 public final void onMessage(T message, boolean last) { in onMessage()
H A DPojoMessageHandlerBase.java36 public abstract class PojoMessageHandlerBase<T>
/unit/src/java/nginx/unit/websocket/server/
H A DDefaultServerEndpointConfigurator.java33 public <T> T getEndpointInstance(Class<T> clazz) in getEndpointInstance()
/unit/src/java/nginx/unit/websocket/
H A DAsyncChannelWrapperSecure.java442 private static class WrapperFuture<T,A> implements Future<T> {
444 private final CompletionHandler<T,A> handler;
447 private volatile T result = null;
455 public WrapperFuture(CompletionHandler<T,A> handler, A attachment) { in WrapperFuture() argument
460 public void complete(T result) { in complete()
494 public T get() throws InterruptedException, ExecutionException { in get()
503 public T get(long timeout, TimeUnit unit) in get()
H A DUtil.java185 private static <T> TypeResult getGenericType(Class<T> type, in getGenericType()
186 Class<? extends T> clazz) { in getGenericType()
208 Class<? extends T> superClazz = in getGenericType()
209 (Class<? extends T>) clazz.getSuperclass(); in getGenericType()
H A DWsSession.java238 public <T> void addMessageHandler(Class<T> clazz, Partial<T> handler) in addMessageHandler()
245 public <T> void addMessageHandler(Class<T> clazz, Whole<T> handler) in addMessageHandler()
/unit/src/java/javax/websocket/server/
H A DServerEndpointConfig.java212 public <T extends Object> T getEndpointInstance(Class<T> clazz) in getEndpointInstance()
/unit/src/java/nginx/unit/
H A DContext.java3225 public <T extends Filter> T createFilter(Class<T> c) throws ServletException
3232 Constructor<T> ctor = c.getConstructor();
3233 T filter = ctor.newInstance();
3243 public <T extends Servlet> T createServlet(Class<T> c) throws ServletException
3250 Constructor<T> ctor = c.getConstructor();
3251 T servlet = ctor.newInstance();
3439 public <T extends EventListener> void addListener(T t)
3508 public <T extends EventListener> T createListener(Class<T> clazz)
H A DRequest.java1210 public <T extends HttpUpgradeHandler> T upgrade( in upgrade()
1211 Class<T> httpUpgradeHandlerClass) throws java.io.IOException, ServletException in upgrade()
1215 T handler; in upgrade()
/unit/src/nodejs/unit-http/
H A Dunit.cpp25 template<typename T>
26 static port_data_t *get(T *handle);
106 template<typename T>
108 port_data_t::get(T *handle) in get()
H A Dnxt_napi.h595 template<typename T>
597 set_named_property(napi_value obj, const char *name, T val) in set_named_property()