Package glide.api.models
Class Script
- java.lang.Object
-
- glide.api.models.Script
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Script extends java.lang.Object implements java.lang.AutoCloseableA wrapper for a Script object forGenericBaseCommands#invokeScript(Script)As long as this object is not closed, the script's code is saved in memory, and can be resent to the server. Script should be enclosed with a try-with-resource block orclose()must be called to invalidate the code hash.
-
-
Constructor Summary
Constructors Constructor Description Script(T code, java.lang.Boolean binaryOutput)Wraps around creating a Script object fromcode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Drop the linked script from glide-rscode.java.lang.BooleangetBinaryOutput()Indication if script invocation output can return binary data.java.lang.StringgetHash()Hash string representing the code.
-
-
-
Method Detail
-
close
public void close() throws java.lang.ExceptionDrop the linked script from glide-rscode.- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getHash
public java.lang.String getHash()
Hash string representing the code.
-
getBinaryOutput
public java.lang.Boolean getBinaryOutput()
Indication if script invocation output can return binary data.
-
-