io.dvlopt.linux.epoll.EpollEventFlag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linux-epoll Show documentation
Show all versions of linux-epoll Show documentation
Use Linux's epoll from java
/*
* Copyright 2018 Adam Helinski
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.dvlopt.linux.epoll ;
/**
* Enum representing the type of events that can be monitored.
*
* @see Man pages
*/
public enum EpollEventFlag {
EPOLLIN ( 0x0001 ) ,
EPOLLPRI ( 0x0002 ) ,
EPOLLOUT ( 0x0004 ) ,
EPOLLRDNORM ( 0x0040 ) ,
EPOLLRDBAND ( 0x0080 ) ,
EPOLLWRNORM ( 0x0100 ) ,
EPOLLWRBAND ( 0x0200 ) ,
EPOLLMSG ( 0x0400 ) ,
EPOLLERR ( 0x0008 ) ,
EPOLLHUP ( 0x0010 ) ,
EPOLLRDHUP ( 0x2000 ) ,
EPOLLWAKEUP ( 1 << 29 ) ,
EPOLLONESHOT( 1 << 30 ) ,
EPOLLT ( 1 << 31 ) ;
final int value ;
private EpollEventFlag( int flag ) {
this.value = flag ;
}
}