object ArmMethods
Methods for management of a resource.
For implicit management see io.tmos.arm.Implicits.
- Alphabetic
- By Inheritance
- ArmMethods
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
closeOnException[R <: AutoCloseable](r: ⇒ R): ManagedResource[R]
Manage an
AutoClosable.Manage an
AutoClosable. This will callAutoClosable.closeduring the on-exception execution lifecycle. The on-finally lifecycle hook is a no-op.- R
the type of the resource passed to the applied expression
- r
the resource the manage
- returns
a managed resource
-
def
closeOnFinally[R <: AutoCloseable](r: ⇒ R): ManagedResource[R]
Manage an
AutoClosable.Manage an
AutoClosable. This will callAutoClosable.closeduring the on-finally execution lifecycle. The on-exception lifecycle hook is a no-op.- R
the type of the resource passed to the applied expression
- r
the resource the manage
- returns
a managed resource
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
manage[R, S >: R](r: ⇒ R)(implicit arg0: CanManage[S]): ManagedResource[R]
Manages a generic resource.
Manages a generic resource.
Requires an implicit
CanManage[S]in scope. A default manager forAutoClosables is provided (SeeCanManage.CloseOnFinally) and the default behaviour is equivalently the same ascloseOnFinally- R
the type of the resource passed to the applied expression
- S
the type of the resource passed to the manager
- r
the resource to managed passed by-name
- returns
a managed resource
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )