[]Struct jni_android_sys::java::util::concurrent::locks::AbstractQueuedSynchronizer

#[repr(transparent)]
pub struct AbstractQueuedSynchronizer(_);

public class AbstractQueuedSynchronizer

Required feature: "java-util-concurrent-locks-AbstractQueuedSynchronizer"

Methods

impl AbstractQueuedSynchronizer

pub fn acquire<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn acquireInterruptibly<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn tryAcquireNanos<'env>(
    &'env self,
    arg0: i32,
    arg1: i64
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn release<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn acquireShared<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn acquireSharedInterruptibly<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn tryAcquireSharedNanos<'env>(
    &'env self,
    arg0: i32,
    arg1: i64
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn releaseShared<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn hasQueuedThreads<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn hasContended<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn getFirstQueuedThread<'env>(
    &'env self
) -> Result<Option<Local<'env, Thread>>, Local<'env, Throwable>>
[src]

getFirstQueuedThread

Required features: "java-lang-Thread"

pub fn isQueued<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Thread>>
) -> Result<bool, Local<'env, Throwable>>
[src]

isQueued

Required features: "java-lang-Thread"

pub fn hasQueuedPredecessors<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn getQueueLength<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getQueuedThreads<'env>(
    &'env self
) -> Result<Option<Local<'env, Collection>>, Local<'env, Throwable>>
[src]

getQueuedThreads

Required features: "java-util-Collection"

pub fn getExclusiveQueuedThreads<'env>(
    &'env self
) -> Result<Option<Local<'env, Collection>>, Local<'env, Throwable>>
[src]

getExclusiveQueuedThreads

Required features: "java-util-Collection"

pub fn getSharedQueuedThreads<'env>(
    &'env self
) -> Result<Option<Local<'env, Collection>>, Local<'env, Throwable>>
[src]

getSharedQueuedThreads

Required features: "java-util-Collection"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn owns<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AbstractQueuedSynchronizer_ConditionObject>>
) -> Result<bool, Local<'env, Throwable>>
[src]

owns

Required features: "java-util-concurrent-locks-AbstractQueuedSynchronizer_ConditionObject"

pub fn hasWaiters<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AbstractQueuedSynchronizer_ConditionObject>>
) -> Result<bool, Local<'env, Throwable>>
[src]

hasWaiters

Required features: "java-util-concurrent-locks-AbstractQueuedSynchronizer_ConditionObject"

pub fn getWaitQueueLength<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AbstractQueuedSynchronizer_ConditionObject>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getWaitQueueLength

Required features: "java-util-concurrent-locks-AbstractQueuedSynchronizer_ConditionObject"

pub fn getWaitingThreads<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AbstractQueuedSynchronizer_ConditionObject>>
) -> Result<Option<Local<'env, Collection>>, Local<'env, Throwable>>
[src]

getWaitingThreads

Required features: "java-util-Collection", "java-util-concurrent-locks-AbstractQueuedSynchronizer_ConditionObject"

Trait Implementations

impl AsJValue for AbstractQueuedSynchronizer

impl AsRef<Serializable> for AbstractQueuedSynchronizer

impl AsValidJObjectAndEnv for AbstractQueuedSynchronizer

impl Deref for AbstractQueuedSynchronizer

type Target = AbstractOwnableSynchronizer

The resulting type after dereferencing.

impl JniType for AbstractQueuedSynchronizer

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.