| Constructor and Description |
|---|
IoUringIoOps(byte opcode,
int flags,
short ioPrio,
int fd,
int rwFlags,
long bufferAddress,
int length,
long offset,
short data)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
long |
bufferAddress()
Returns the bufferAddress that will be used.
|
short |
data()
Returns the data that the user attached to the op.
|
int |
fd()
Returns the filedescriptor.
|
int |
flags()
Returns the flags that will be applied.
|
short |
ioPrio()
Returns the priority.
|
int |
length()
Returns the length that will be used.
|
static IoUringIoOps |
newAccept(int fd,
int flags,
int acceptFlags,
long acceptedAddressMemoryAddress,
long acceptedAddressLengthMemoryAddress,
short data)
Returns a new
OP_ACCEPT IoUringIoOps. |
static IoUringIoOps |
newAsyncCancel(int fd,
int flags,
long userData,
short data)
Returns a new
OP_ASYNC_CANCEL IoUringIoOps. |
static IoUringIoOps |
newClose(int fd,
int flags,
short data)
Returns a new
OP_CLOSE IoUringIoOps. |
static IoUringIoOps |
newConnect(int fd,
int flags,
long remoteMemoryAddress,
short data)
Returns a new
OP_CONNECT IoUringIoOps. |
static IoUringIoOps |
newPollAdd(int fd,
int flags,
int mask,
short data)
Returns a new
OP_POLL_ADD IoUringIoOps. |
static IoUringIoOps |
newPollRemove(int fd,
int flags,
long userData,
short data)
Returns a new
OP_POLL_REMOVE IoUringIoOps. |
static IoUringIoOps |
newRecv(int fd,
int flags,
int recvFlags,
long memoryAddress,
int length,
short data)
Returns a new
OP_RECV IoUringIoOps. |
static IoUringIoOps |
newRecvmsg(int fd,
int flags,
int msgFlags,
long memoryAddress,
short data)
Returns a new
OP_RECVMSG IoUringIoOps. |
static IoUringIoOps |
newSend(int fd,
int flags,
int sendFlags,
long memoryAddress,
int length,
short data)
Returns a new
OP_SEND IoUringIoOps. |
static IoUringIoOps |
newSendmsg(int fd,
int flags,
int msgFlags,
long address,
short data)
Returns a new
OP_SENDMSG IoUringIoOps. |
static IoUringIoOps |
newShutdown(int fd,
int flags,
int how,
int id,
short data)
Returns a new
OP_SHUTDOWN IoUringIoOps. |
static IoUringIoOps |
newWrite(int fd,
int flags,
int writeFlags,
long memoryAddress,
int length,
short data)
Returns a new
OP_WRITE IoUringIoOps. |
static IoUringIoOps |
newWritev(int fd,
int flags,
int writevFlags,
long memoryAddress,
int length,
short data)
Returns a new
OP_WRITEV IoUringIoOps. |
long |
offset()
Returns the offset that will be used.
|
byte |
opcode()
Returns the opcode.
|
int |
rwFlags()
Returns the rwFlags that will be applied.
|
String |
toString() |
public IoUringIoOps(byte opcode,
int flags,
short ioPrio,
int fd,
int rwFlags,
long bufferAddress,
int length,
long offset,
short data)
opcode - the operation.flags - the flagsioPrio - the priority.fd - the filedescriptor.rwFlags - the flags specific for the op.bufferAddress - the bufferaddresslength - the lengthoffset - the offset.data - the user data that will be passed back on completion.public int fd()
public byte opcode()
public int flags()
public short ioPrio()
public int rwFlags()
public long bufferAddress()
public int length()
public long offset()
public short data()
public static IoUringIoOps newAsyncCancel(int fd, int flags, long userData, short data)
OP_ASYNC_CANCEL IoUringIoOps.fd - the filedescriptorflags - the flags.userData - the user data that identify a previous submitted IoUringIoOps that should be cancelled.
The value to use here is returned by IoUringIoRegistration.submit(IoOps).data - the datapublic static IoUringIoOps newClose(int fd, int flags, short data)
OP_CLOSE IoUringIoOps.fd - the filedescriptorflags - the flags.data - the datapublic static IoUringIoOps newPollAdd(int fd, int flags, int mask, short data)
OP_POLL_ADD IoUringIoOps.fd - the filedescriptorflags - the flags.mask - the mask.data - the datapublic static IoUringIoOps newSendmsg(int fd, int flags, int msgFlags, long address, short data)
OP_SENDMSG IoUringIoOps.fd - the filedescriptorflags - the flags.msgFlags - the msg flags.data - the datapublic static IoUringIoOps newConnect(int fd, int flags, long remoteMemoryAddress, short data)
OP_CONNECT IoUringIoOps.fd - the filedescriptorflags - the flags.remoteMemoryAddress - the memory address of the sockaddr_storage.data - the datapublic static IoUringIoOps newPollRemove(int fd, int flags, long userData, short data)
OP_POLL_REMOVE IoUringIoOps.fd - the filedescriptorflags - the flags.userData - the user data that identify a previous submitted IoUringIoOps that should be cancelled.
The value to use here is returned by IoUringIoRegistration.submit(IoOps).data - the datapublic static IoUringIoOps newAccept(int fd, int flags, int acceptFlags, long acceptedAddressMemoryAddress, long acceptedAddressLengthMemoryAddress, short data)
OP_ACCEPT IoUringIoOps.fd - the filedescriptorflags - the flags.acceptedAddressMemoryAddress - the memory address of the sockaddr_storage.acceptedAddressLengthMemoryAddress - the memory address of the length that will be updated once a new
connection was accepted.data - the datapublic static IoUringIoOps newWritev(int fd, int flags, int writevFlags, long memoryAddress, int length, short data)
OP_WRITEV IoUringIoOps.fd - the filedescriptorflags - the flags.writevFlags - the writev flags.memoryAddress - the memory address of the io_vec array.length - the length of the io_vec array.data - the datapublic static IoUringIoOps newWrite(int fd, int flags, int writeFlags, long memoryAddress, int length, short data)
OP_WRITE IoUringIoOps.fd - the filedescriptorflags - the flags.writeFlags - the write flags.memoryAddress - the memory address of the bufferlength - the length of the buffer.data - the datapublic static IoUringIoOps newRecv(int fd, int flags, int recvFlags, long memoryAddress, int length, short data)
OP_RECV IoUringIoOps.fd - the filedescriptorflags - the flags.recvFlags - the recv flags.memoryAddress - the memory address of the bufferlength - the length of the buffer.data - the datapublic static IoUringIoOps newRecvmsg(int fd, int flags, int msgFlags, long memoryAddress, short data)
OP_RECVMSG IoUringIoOps.fd - the filedescriptorflags - the flags.msgFlags - the recvmsg flags.memoryAddress - the memory address of the msghdr structdata - the datapublic static IoUringIoOps newSend(int fd, int flags, int sendFlags, long memoryAddress, int length, short data)
OP_SEND IoUringIoOps.fd - the filedescriptorflags - the flags.sendFlags - the send flags.memoryAddress - the memory address of the buffer.length - the length of the buffer.data - the datapublic static IoUringIoOps newShutdown(int fd, int flags, int how, int id, short data)
OP_SHUTDOWN IoUringIoOps.fd - the filedescriptorflags - the flags.how - how the shutdown will be done.data - the dataCopyright © 2008–2024 The Netty Project. All rights reserved.