Java FileLock unblockSocket(SelectableChannel... channels)

Here you can find the source of unblockSocket(SelectableChannel... channels)

Description

unblock Socket

License

Open Source License

Declaration

public static void unblockSocket(SelectableChannel... channels) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;

import java.nio.channels.SelectableChannel;

public class Main {
    public static void unblockSocket(SelectableChannel... channels) throws IOException {
        for (SelectableChannel ch : channels) {
            ch.configureBlocking(false);
        }//from  ww  w.  jav a  2  s . c o m
    }
}

Related

  1. releaseSilent(FileLock fileLock)
  2. setNonBlockingFD(Channel c, boolean blocking)
  3. tryLock(File file)
  4. trylock(File file, boolean shared)
  5. tryLock(File location)
  6. unlock(File file)
  7. unlock(FileLock lock)
  8. unlockFile()
  9. unlockFile()