congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
org.apache.catalina.tribes.transport.nio
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.catalina.tribes.transport.nio

Best Java code snippets using org.apache.catalina.tribes.transport.nio (Showing top 20 results out of 315)

origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

public AbstractRxTask createRxTask() {
  NioReplicationTask thread = new NioReplicationTask(this,this);
  thread.setUseBufferPool(this.getUseBufferPool());
  thread.setRxBufSize(getRxBufSize());
  thread.setOptions(getWorkerThreadOptions());
  return thread;
}

origin: codefollower/Tomcat-Research

/**
* sendMessage
*
* @param data ChannelMessage
* @throws IOException
* TODO Implement this org.apache.catalina.tribes.transport.IDataSender method
*/
public void setMessage(byte[] data) throws IOException {
  setMessage(data,0,data.length);
}
origin: org.apache.tomcat/tomcat-tribes

@Override
public synchronized void disconnect() {
  setConnected(false);
  try {
    close();
  } catch (Exception x) {
    // Ignore
  }
}
origin: org.apache.tomcat/tomcat-tribes

private ByteBuffer getReadBuffer() {
  return getBuffer(getRxBufSize());
}
origin: org.apache.geronimo.ext.tomcat/tribes

private ByteBuffer getWriteBuffer() {
  return getBuffer(getTxBufSize());
}
origin: codefollower/Tomcat-Research

@Override
public void connect() {
  //do nothing, we connect on demand
  setConnected(true);
}
origin: org.apache.tomcat/tomcat-tribes

@Override
public AbstractRxTask createRxTask() {
  NioReplicationTask thread = new NioReplicationTask(this,this);
  thread.setUseBufferPool(this.getUseBufferPool());
  thread.setRxBufSize(getRxBufSize());
  thread.setOptions(getWorkerThreadOptions());
  return thread;
}
origin: codefollower/Tomcat-Research

@Override
public synchronized void disconnect() {
  setConnected(false);
  try {close(); }catch (Exception x){/*Ignore*/}
}
origin: org.apache.geronimo.ext.tomcat/tribes

private ByteBuffer getReadBuffer() {
  return getBuffer(getRxBufSize());
}
origin: codefollower/Tomcat-Research

private ByteBuffer getWriteBuffer() {
  return getBuffer(getTxBufSize());
}
origin: org.apache.tomcat/tomcat-tribes

/**
* sendMessage
*
* @param data ChannelMessage
* @throws IOException
* TODO Implement this org.apache.catalina.tribes.transport.IDataSender method
*/
public void setMessage(byte[] data) throws IOException {
  setMessage(data,0,data.length);
}
origin: org.apache.tomcat/tomcat-tribes

@Override
public void connect() {
  //do nothing, we connect on demand
  setConnected(true);
}
origin: org.apache.geronimo.ext.tomcat/tribes

@Override
public AbstractRxTask createRxTask() {
  NioReplicationTask thread = new NioReplicationTask(this,this);
  thread.setUseBufferPool(this.getUseBufferPool());
  thread.setRxBufSize(getRxBufSize());
  thread.setOptions(getWorkerThreadOptions());
  return thread;
}
origin: org.apache.geronimo.ext.tomcat/tribes

@Override
public synchronized void disconnect() {
  setConnected(false);
  try {close(); }catch (Exception x){/*Ignore*/}
}
origin: org.apache.geronimo.ext.tomcat/tribes

/**
* sendMessage
*
* @param data ChannelMessage
* @throws IOException
* TODO Implement this org.apache.catalina.tribes.transport.IDataSender method
*/
public synchronized void setMessage(byte[] data) throws IOException {
  setMessage(data,0,data.length);
}
origin: org.apache.geronimo.ext.tomcat/tribes

@Override
public void connect() {
  //do nothing, we connect on demand
  setConnected(true);
}
origin: codefollower/Tomcat-Research

@Override
public AbstractRxTask createRxTask() {
  NioReplicationTask thread = new NioReplicationTask(this,this);
  thread.setUseBufferPool(this.getUseBufferPool());
  thread.setRxBufSize(getRxBufSize());
  thread.setOptions(getWorkerThreadOptions());
  return thread;
}
origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

public synchronized void disconnect() {
  setConnected(false);
  try {close(); }catch (Exception x){}
  
}

origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

/**
* sendMessage
*
* @param data ChannelMessage
* @throws IOException
* @todo Implement this org.apache.catalina.tribes.transport.IDataSender method
*/
public synchronized void setMessage(byte[] data) throws IOException {
  setMessage(data,0,data.length);
}
origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource

public void connect() {
  //do nothing, we connect on demand
  setConnected(true);
}

org.apache.catalina.tribes.transport.nio

Most used classes

  • NioReceiver
  • NioReplicationTask
    A worker thread class which can drain channels and echo-back the input. Each instance is constructed
  • NioSender
    This class is NOT thread safe and should never be used with more than one thread at a time This is a
  • ParallelNioSender
    Title: Description: Company:
  • PooledParallelSender
    Title: Description: Company:
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now