com.mindoo.domino.jna.internal.structs.ReplExtensionsStruct Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-jna Show documentation
Show all versions of domino-jna Show documentation
Java project to access the HCL Domino C API using Java Native Access (JNA)
package com.mindoo.domino.jna.internal.structs;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
/**
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class ReplExtensionsStruct extends BaseStructure {
/**
* sizeof(REPLEXTENSIONS), allows for future
* expansion
*/
public short Size;
/**
* If non-zero, number of minutes replication
* is allowed to execute before cancellation.
* If not specified, no limit is imposed
*/
public short TimeLimit;
public ReplExtensionsStruct() {
super();
}
public static ReplExtensionsStruct newInstance() {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public ReplExtensionsStruct run() {
return new ReplExtensionsStruct();
}
});
}
protected List getFieldOrder() {
return Arrays.asList("Size", "TimeLimit");
}
/**
* @param Size sizeof(REPLEXTENSIONS), allows for future
* expansion
* @param TimeLimit If non-zero, number of minutes replication
* is allowed to execute before cancellation.
* If not specified, no limit is imposed
*/
public ReplExtensionsStruct(short Size, short TimeLimit) {
super();
this.Size = Size;
this.TimeLimit = TimeLimit;
}
public static ReplExtensionsStruct newInstance(final short Size, final short TimeLimit) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public ReplExtensionsStruct run() {
return new ReplExtensionsStruct(Size, TimeLimit);
}
});
}
public ReplExtensionsStruct(Pointer peer) {
super(peer);
}
public static ReplExtensionsStruct newInstance(final Pointer peer) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public ReplExtensionsStruct run() {
return new ReplExtensionsStruct(peer);
}
});
}
public static class ByReference extends ReplExtensionsStruct implements Structure.ByReference {
};
public static class ByValue extends ReplExtensionsStruct implements Structure.ByValue {
};
}