Search in sources :

Example 1 with ObjHolder

use of fr.lelouet.tools.holders.interfaces.ObjHolder in project JCELechat by guiguilechat.

the class Characters method mail.

/**
 * Return the contents of an EVE mail
 *
 * cache over {@link Swagger#get_characters_mail}<br />
 *
 * @param character_id
 *     An EVE character ID
 * @param mail_id
 *     An EVE mail ID
 */
public ObjHolder<R_get_characters_character_id_mail_mail_id> mail(int character_id, int mail_id) {
    K_5_int_int param = new K_5_int_int(mail_id, character_id);
    ObjHolderSimple<R_get_characters_character_id_mail_mail_id> ret = get_characters_character_id_mail_mail_id_holder.get(param);
    if (ret == null) {
        LockWatchDog.BARKER.tak(get_characters_character_id_mail_mail_id_holder);
        try {
            synchronized (get_characters_character_id_mail_mail_id_holder) {
                LockWatchDog.BARKER.hld(get_characters_character_id_mail_mail_id_holder);
                {
                    ret = get_characters_character_id_mail_mail_id_holder.get(param);
                    if (ret == null) {
                        ret = new ObjHolderSimple<R_get_characters_character_id_mail_mail_id>();
                        ObjHolderSimple<R_get_characters_character_id_mail_mail_id> finalRet = ret;
                        get_characters_character_id_mail_mail_id_holder.put(param, ret);
                        (cache).addFetchCacheObject("get_characters_character_id_mail_mail_id", properties -> (cache.swagger).get_characters_mail(character_id, mail_id, properties), item -> finalRet.set(item));
                    }
                }
                LockWatchDog.BARKER.rel(get_characters_character_id_mail_mail_id_holder);
            }
        } finally {
            LockWatchDog.BARKER.rel(get_characters_character_id_mail_mail_id_holder);
        }
    }
    return ret;
}
Also used : K_4_Integer_int_Lint(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_4_Integer_int_Lint) R_get_characters_character_id_search(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_search) R_get_characters_character_id_titles(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_titles) R_get_characters_character_id_online(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_online) M_get_journal_13(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_journal_13) R_get_characters_character_id_mail(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mail) R_get_characters_character_id_fw_stats(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_fw_stats) R_get_characters_character_id_industry_jobs(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_industry_jobs) R_get_characters_character_id_skillqueue(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_skillqueue) R_get_characters_character_id_clones(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_clones) R_get_characters_character_id_mail_labels(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mail_labels) Map(java.util.Map) R_get_characters_character_id_calendar_event_id(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_calendar_event_id) ListHolder(fr.lelouet.tools.holders.interfaces.collections.ListHolder) R_get_characters_character_id_ship(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_ship) R_get_characters_character_id_calendar(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_calendar) K_2_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_2_int_int) M_get_contracts_22(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_22) ObjHolder(fr.lelouet.tools.holders.interfaces.ObjHolder) R_get_characters_character_id_planets_planet_id(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_planets_planet_id) M_get_bookmarks_9(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_bookmarks_9) R_get_characters_character_id_notifications(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_notifications) K_6_Long_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_6_Long_int) R_get_characters_character_id_fleet(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_fleet) K_0_int_Integer(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_0_int_Integer) R_get_characters_character_id_bookmarks_folders(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_bookmarks_folders) R_get_characters_character_id_medals(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_medals) R_get_characters_character_id_location(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_location) R_get_characters_character_id_loyalty_points(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_loyalty_points) M_get_standings_3(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_standings_3) ListHolderImpl(fr.lelouet.tools.holders.impl.collections.ListHolderImpl) R_get_characters_character_id_fittings(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_fittings) R_get_characters_character_id_notifications_contacts(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_notifications_contacts) R_get_characters_character_id_contacts(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_contacts) ObjHolderSimple(fr.lelouet.tools.holders.impl.ObjHolderSimple) R_get_characters_character_id_calendar_event_id_attendees(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_calendar_event_id_attendees) HashMap(java.util.HashMap) K_18_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_18_int_int) R_get_characters_character_id_assets(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_assets) SwaggerCOCache(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.SwaggerCOCache) R_get_characters_character_id_agents_research(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_agents_research) R_get_characters_character_id_skills(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_skills) R_get_characters_character_id_wallet_transactions(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_wallet_transactions) R_get_characters_character_id_orders_history(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_orders_history) R_get_characters_character_id_fatigue(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_fatigue) M_get_killmails_2(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_killmails_2) M_get_contracts_contract_items_6(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_contract_items_6) R_get_characters_character_id_orders(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_orders) R_get_characters_character_id_planets(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_planets) R_get_characters_character_id_roles(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_roles) R_get_characters_character_id_opportunities(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_opportunities) M_get_contracts_contract_bids_4(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_contract_bids_4) K_1_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_1_int_int) K_3_Boolean_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_3_Boolean_int) R_get_characters_character_id_mining(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mining) K_19_String_LString_int_Boolean(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_19_String_LString_int_Boolean) LockWatchDog(fr.lelouet.tools.synchronization.LockWatchDog) R_get_characters_character_id_blueprints(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_blueprints) M_get_contacts_labels_2(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contacts_labels_2) K_5_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_5_int_int) R_get_characters_character_id_attributes(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_attributes) R_get_characters_character_id_mail_lists(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mail_lists) R_get_characters_character_id_mail_mail_id(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mail_mail_id) R_get_characters_character_id_mail_mail_id(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mail_mail_id) ObjHolderSimple(fr.lelouet.tools.holders.impl.ObjHolderSimple) K_5_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_5_int_int)

Example 2 with ObjHolder

use of fr.lelouet.tools.holders.interfaces.ObjHolder in project JCELechat by guiguilechat.

the class Characters method calendar.

/**
 * Get all the information for a specific event
 *
 * cache over {@link Swagger#get_characters_calendar}<br />
 *
 * @param character_id
 *     An EVE character ID
 * @param event_id
 *     The id of the event requested
 */
public ObjHolder<R_get_characters_character_id_calendar_event_id> calendar(int character_id, int event_id) {
    K_1_int_int param = new K_1_int_int(event_id, character_id);
    ObjHolderSimple<R_get_characters_character_id_calendar_event_id> ret = get_characters_character_id_calendar_event_id_holder.get(param);
    if (ret == null) {
        LockWatchDog.BARKER.tak(get_characters_character_id_calendar_event_id_holder);
        try {
            synchronized (get_characters_character_id_calendar_event_id_holder) {
                LockWatchDog.BARKER.hld(get_characters_character_id_calendar_event_id_holder);
                {
                    ret = get_characters_character_id_calendar_event_id_holder.get(param);
                    if (ret == null) {
                        ret = new ObjHolderSimple<R_get_characters_character_id_calendar_event_id>();
                        ObjHolderSimple<R_get_characters_character_id_calendar_event_id> finalRet = ret;
                        get_characters_character_id_calendar_event_id_holder.put(param, ret);
                        (cache).addFetchCacheObject("get_characters_character_id_calendar_event_id", properties -> (cache.swagger).get_characters_calendar(character_id, event_id, properties), item -> finalRet.set(item));
                    }
                }
                LockWatchDog.BARKER.rel(get_characters_character_id_calendar_event_id_holder);
            }
        } finally {
            LockWatchDog.BARKER.rel(get_characters_character_id_calendar_event_id_holder);
        }
    }
    return ret;
}
Also used : K_1_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_1_int_int) K_4_Integer_int_Lint(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_4_Integer_int_Lint) R_get_characters_character_id_search(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_search) R_get_characters_character_id_titles(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_titles) R_get_characters_character_id_online(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_online) M_get_journal_13(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_journal_13) R_get_characters_character_id_mail(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mail) R_get_characters_character_id_fw_stats(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_fw_stats) R_get_characters_character_id_industry_jobs(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_industry_jobs) R_get_characters_character_id_skillqueue(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_skillqueue) R_get_characters_character_id_clones(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_clones) R_get_characters_character_id_mail_labels(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mail_labels) Map(java.util.Map) R_get_characters_character_id_calendar_event_id(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_calendar_event_id) ListHolder(fr.lelouet.tools.holders.interfaces.collections.ListHolder) R_get_characters_character_id_ship(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_ship) R_get_characters_character_id_calendar(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_calendar) K_2_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_2_int_int) M_get_contracts_22(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_22) ObjHolder(fr.lelouet.tools.holders.interfaces.ObjHolder) R_get_characters_character_id_planets_planet_id(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_planets_planet_id) M_get_bookmarks_9(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_bookmarks_9) R_get_characters_character_id_notifications(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_notifications) K_6_Long_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_6_Long_int) R_get_characters_character_id_fleet(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_fleet) K_0_int_Integer(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_0_int_Integer) R_get_characters_character_id_bookmarks_folders(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_bookmarks_folders) R_get_characters_character_id_medals(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_medals) R_get_characters_character_id_location(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_location) R_get_characters_character_id_loyalty_points(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_loyalty_points) M_get_standings_3(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_standings_3) ListHolderImpl(fr.lelouet.tools.holders.impl.collections.ListHolderImpl) R_get_characters_character_id_fittings(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_fittings) R_get_characters_character_id_notifications_contacts(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_notifications_contacts) R_get_characters_character_id_contacts(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_contacts) ObjHolderSimple(fr.lelouet.tools.holders.impl.ObjHolderSimple) R_get_characters_character_id_calendar_event_id_attendees(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_calendar_event_id_attendees) HashMap(java.util.HashMap) K_18_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_18_int_int) R_get_characters_character_id_assets(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_assets) SwaggerCOCache(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.SwaggerCOCache) R_get_characters_character_id_agents_research(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_agents_research) R_get_characters_character_id_skills(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_skills) R_get_characters_character_id_wallet_transactions(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_wallet_transactions) R_get_characters_character_id_orders_history(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_orders_history) R_get_characters_character_id_fatigue(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_fatigue) M_get_killmails_2(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_killmails_2) M_get_contracts_contract_items_6(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_contract_items_6) R_get_characters_character_id_orders(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_orders) R_get_characters_character_id_planets(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_planets) R_get_characters_character_id_roles(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_roles) R_get_characters_character_id_opportunities(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_opportunities) M_get_contracts_contract_bids_4(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_contract_bids_4) K_1_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_1_int_int) K_3_Boolean_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_3_Boolean_int) R_get_characters_character_id_mining(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mining) K_19_String_LString_int_Boolean(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_19_String_LString_int_Boolean) LockWatchDog(fr.lelouet.tools.synchronization.LockWatchDog) R_get_characters_character_id_blueprints(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_blueprints) M_get_contacts_labels_2(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contacts_labels_2) K_5_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_5_int_int) R_get_characters_character_id_attributes(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_attributes) R_get_characters_character_id_mail_lists(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mail_lists) R_get_characters_character_id_mail_mail_id(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_mail_mail_id) R_get_characters_character_id_calendar_event_id(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_calendar_event_id) ObjHolderSimple(fr.lelouet.tools.holders.impl.ObjHolderSimple)

Example 3 with ObjHolder

use of fr.lelouet.tools.holders.interfaces.ObjHolder in project JCELechat by guiguilechat.

the class Corporations method starbases.

/**
 * Returns various settings and fuels of a starbase (POS)
 *
 * cache over {@link Swagger#get_corporations_starbases}<br />
 *
 * @param corporation_id
 *     An EVE corporation ID
 * @param starbase_id
 *     An EVE starbase (POS) ID
 * @param system_id
 *     The solar system this starbase (POS) is located in,
 */
public ObjHolder<R_get_corporations_corporation_id_starbases_starbase_id> starbases(int corporation_id, long starbase_id, int system_id) {
    K_16_int_long_int param = new K_16_int_long_int(corporation_id, starbase_id, system_id);
    ObjHolderSimple<R_get_corporations_corporation_id_starbases_starbase_id> ret = get_corporations_corporation_id_starbases_starbase_id_holder.get(param);
    if (ret == null) {
        LockWatchDog.BARKER.tak(get_corporations_corporation_id_starbases_starbase_id_holder);
        try {
            synchronized (get_corporations_corporation_id_starbases_starbase_id_holder) {
                LockWatchDog.BARKER.hld(get_corporations_corporation_id_starbases_starbase_id_holder);
                {
                    ret = get_corporations_corporation_id_starbases_starbase_id_holder.get(param);
                    if (ret == null) {
                        ret = new ObjHolderSimple<R_get_corporations_corporation_id_starbases_starbase_id>();
                        ObjHolderSimple<R_get_corporations_corporation_id_starbases_starbase_id> finalRet = ret;
                        get_corporations_corporation_id_starbases_starbase_id_holder.put(param, ret);
                        (cache).addFetchCacheObject("get_corporations_corporation_id_starbases_starbase_id", properties -> (cache.swagger).get_corporations_starbases(corporation_id, starbase_id, system_id, properties), item -> finalRet.set(item), new String[] { "Director" });
                    }
                }
                LockWatchDog.BARKER.rel(get_corporations_corporation_id_starbases_starbase_id_holder);
            }
        } finally {
            LockWatchDog.BARKER.rel(get_corporations_corporation_id_starbases_starbase_id_holder);
        }
    }
    return ret;
}
Also used : R_get_corporations_corporation_id_titles(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_titles) R_get_corporations_corporation_id_fw_stats(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_fw_stats) K_20_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_20_int_int) M_get_journal_13(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_journal_13) R_get_corporations_corporation_id_facilities(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_facilities) R_get_corporations_corporation_id_starbases(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_starbases) ObjHolderSimple(fr.lelouet.tools.holders.impl.ObjHolderSimple) HashMap(java.util.HashMap) R_get_corporations_corporation_id_assets(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_assets) R_get_corporations_corporation_id_divisions(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_divisions) R_get_corporations_corporation_id_roles(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_roles) SwaggerCOCache(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.SwaggerCOCache) R_get_corporations_corporation_id_containers_logs(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_containers_logs) M_get_killmails_2(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_killmails_2) M_get_contracts_contract_items_6(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_contract_items_6) Map(java.util.Map) R_get_corporations_corporation_id_orders(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_orders) ListHolder(fr.lelouet.tools.holders.interfaces.collections.ListHolder) K_8_int_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_8_int_int) R_get_corporations_corporation_id_structures(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_structures) K_10_int_int_Long(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_10_int_int_Long) R_get_corporations_corporation_id_contacts(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_contacts) R_get_corporations_corporation_id_industry_jobs(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_industry_jobs) R_get_corporations_corporation_id_blueprints(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_blueprints) M_get_contracts_contract_bids_4(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_contract_bids_4) M_get_contracts_22(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_22) ObjHolder(fr.lelouet.tools.holders.interfaces.ObjHolder) M_get_bookmarks_9(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_bookmarks_9) R_get_corporations_corporation_id_wallets_division_transactions(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_wallets_division_transactions) R_get_corporations_corporation_id_customs_offices(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_customs_offices) LockWatchDog(fr.lelouet.tools.synchronization.LockWatchDog) R_get_corporations_corporation_id_orders_history(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_orders_history) R_get_corporations_corporation_id_roles_history(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_roles_history) R_get_corporations_corporation_id_wallets(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_wallets) R_get_corporations_corporation_id_starbases_starbase_id(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_starbases_starbase_id) M_get_contacts_labels_2(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contacts_labels_2) K_16_int_long_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_16_int_long_int) R_get_corporations_corporation_id_bookmarks_folders(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_bookmarks_folders) R_get_corporations_corporation_id_medals(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_medals) R_get_corporations_corporation_id_medals_issued(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_medals_issued) R_get_corporations_corporation_id_membertracking(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_membertracking) R_get_corporations_corporation_id_shareholders(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_shareholders) M_get_standings_3(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_standings_3) R_get_corporations_corporation_id_members_titles(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_members_titles) ListHolderImpl(fr.lelouet.tools.holders.impl.collections.ListHolderImpl) K_9_int_Boolean(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_9_int_Boolean) K_16_int_long_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_16_int_long_int) ObjHolderSimple(fr.lelouet.tools.holders.impl.ObjHolderSimple) R_get_corporations_corporation_id_starbases_starbase_id(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_corporations_corporation_id_starbases_starbase_id)

Example 4 with ObjHolder

use of fr.lelouet.tools.holders.interfaces.ObjHolder in project JCELechat by guiguilechat.

the class Killmails method get.

/**
 * Return a single killmail from its ID and hash
 *
 * cache over {@link Swagger#get_killmails}<br />
 *
 * @param killmail_hash
 *     The killmail hash for verification
 * @param killmail_id
 *     The killmail ID to be queried
 */
public ObjHolder<R_get_killmails_killmail_id_killmail_hash> get(String killmail_hash, int killmail_id) {
    K_12_String_int param = new K_12_String_int(killmail_hash, killmail_id);
    ObjHolderSimple<R_get_killmails_killmail_id_killmail_hash> ret = get_killmails_killmail_id_killmail_hash_holder.get(param);
    if (ret == null) {
        LockWatchDog.BARKER.tak(get_killmails_killmail_id_killmail_hash_holder);
        try {
            synchronized (get_killmails_killmail_id_killmail_hash_holder) {
                LockWatchDog.BARKER.hld(get_killmails_killmail_id_killmail_hash_holder);
                {
                    ret = get_killmails_killmail_id_killmail_hash_holder.get(param);
                    if (ret == null) {
                        ret = new ObjHolderSimple<R_get_killmails_killmail_id_killmail_hash>();
                        ObjHolderSimple<R_get_killmails_killmail_id_killmail_hash> finalRet = ret;
                        get_killmails_killmail_id_killmail_hash_holder.put(param, ret);
                        (cache).addFetchCacheObject("get_killmails_killmail_id_killmail_hash", properties -> (cache.swagger).get_killmails(killmail_hash, killmail_id, properties), item -> finalRet.set(item));
                    }
                }
                LockWatchDog.BARKER.rel(get_killmails_killmail_id_killmail_hash_holder);
            }
        } finally {
            LockWatchDog.BARKER.rel(get_killmails_killmail_id_killmail_hash_holder);
        }
    }
    return ret;
}
Also used : SwaggerDCCache(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.SwaggerDCCache) ObjHolder(fr.lelouet.tools.holders.interfaces.ObjHolder) Map(java.util.Map) ObjHolderSimple(fr.lelouet.tools.holders.impl.ObjHolderSimple) LockWatchDog(fr.lelouet.tools.synchronization.LockWatchDog) HashMap(java.util.HashMap) R_get_killmails_killmail_id_killmail_hash(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_killmails_killmail_id_killmail_hash) K_12_String_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_12_String_int) K_12_String_int(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_12_String_int) R_get_killmails_killmail_id_killmail_hash(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_killmails_killmail_id_killmail_hash) ObjHolderSimple(fr.lelouet.tools.holders.impl.ObjHolderSimple)

Example 5 with ObjHolder

use of fr.lelouet.tools.holders.interfaces.ObjHolder in project JCELechat by guiguilechat.

the class Search method get.

/**
 * Search for entities that match a given sub-string.
 *
 * cache over {@link Swagger#get}<br />
 *
 * @param categories
 *     Type of entities to search for
 * @param search
 *     The string to search on
 * @param strict
 *     Whether the search should be a strict match
 */
public ObjHolder<R_get_search> get(String[] categories, String search, Boolean strict) {
    K_17_String_LString_Boolean param = new K_17_String_LString_Boolean(search, categories, strict);
    ObjHolderSimple<R_get_search> ret = get_search_holder.get(param);
    if (ret == null) {
        LockWatchDog.BARKER.tak(get_search_holder);
        try {
            synchronized (get_search_holder) {
                LockWatchDog.BARKER.hld(get_search_holder);
                {
                    ret = get_search_holder.get(param);
                    if (ret == null) {
                        ret = new ObjHolderSimple<R_get_search>();
                        ObjHolderSimple<R_get_search> finalRet = ret;
                        get_search_holder.put(param, ret);
                        (cache).addFetchCacheObject("get_search", properties -> (cache.swagger).get(categories, search, strict, properties), item -> finalRet.set(item));
                    }
                }
                LockWatchDog.BARKER.rel(get_search_holder);
            }
        } finally {
            LockWatchDog.BARKER.rel(get_search_holder);
        }
    }
    return ret;
}
Also used : SwaggerDCCache(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.SwaggerDCCache) ObjHolder(fr.lelouet.tools.holders.interfaces.ObjHolder) R_get_search(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_search) Map(java.util.Map) ObjHolderSimple(fr.lelouet.tools.holders.impl.ObjHolderSimple) LockWatchDog(fr.lelouet.tools.synchronization.LockWatchDog) HashMap(java.util.HashMap) K_17_String_LString_Boolean(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_17_String_LString_Boolean) K_17_String_LString_Boolean(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_17_String_LString_Boolean) R_get_search(fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_search) ObjHolderSimple(fr.lelouet.tools.holders.impl.ObjHolderSimple)

Aggregations

ObjHolder (fr.lelouet.tools.holders.interfaces.ObjHolder)14 Map (java.util.Map)11 HashMap (java.util.HashMap)10 ObjHolderSimple (fr.lelouet.tools.holders.impl.ObjHolderSimple)9 ListHolder (fr.lelouet.tools.holders.interfaces.collections.ListHolder)8 LockWatchDog (fr.lelouet.tools.synchronization.LockWatchDog)8 M_get_journal_13 (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_journal_13)6 M_get_standings_3 (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_standings_3)6 ListHolderImpl (fr.lelouet.tools.holders.impl.collections.ListHolderImpl)6 SwaggerCOCache (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.SwaggerCOCache)5 M_get_bookmarks_9 (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_bookmarks_9)5 M_get_contacts_labels_2 (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contacts_labels_2)5 M_get_contracts_22 (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_22)5 M_get_contracts_contract_bids_4 (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_contract_bids_4)5 M_get_contracts_contract_items_6 (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_contracts_contract_items_6)5 M_get_killmails_2 (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.M_get_killmails_2)5 R_get_characters_character_id_attributes (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses.R_get_characters_character_id_attributes)5 K_0_int_Integer (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_0_int_Integer)4 K_18_int_int (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_18_int_int)4 K_19_String_LString_int_Boolean (fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.keys.K_19_String_LString_int_Boolean)4